// IP PORT 配置
const baseUrl = process.env.BASEURL

if (process.env.NODE_ENV === 'development') {
  // 实际代理转发表
  exports.proxy = {
    '/api': {
      target: baseUrl,
      ws: true,
      pathRewrite: {
        '^/api': '/'
      }
    },
    '/video': {
      target: "http://192.168.110.5:1017",
      ws: true,
      pathRewrite: {
        '^/video': '/'
      }
    },
    '/restapi': {
      target: "https://restapi.amap.com",
      ws: true,
      pathRewrite: {
        '^/restapi': '/'
      }
    },
  }
}
// 改成本地 IP
exports.host = process.env.HOST
exports.port = process.env.PORT
